package com.xsir.ditan.admin.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xsir
 * @since 2021-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private String name;

    private String icon;

    private String url;

    private String param;

    private Integer pid;

    private String type;

    private String permission;

    private String status;

    private String isPublic;

    private String note;
    
    /**
     * 非数据库字段
     */
    @TableField(exist = false)
    private List<Menu> children;
    
    
}
